package com.yc.learn.sourse.pojo;

import java.util.Date;

import com.yc.learn.job.pojo.Job;

public class Sourse {
    private Integer sourseId;

    private String sourseName;

    private String soursePath;
    
    private String sourseImg;

    private Long sourseSize;

    private String sourseAuthor;

    private Date sourseDate;

    private String sourseIntro;
    
    private Job job;
    
    private Integer collectCount;

    public Sourse() {
		super();
	}

	public Sourse(String sourseName, String soursePath, String sourseImg, Long sourseSize, String sourseAuthor,
			Date sourseDate, String sourseIntro, Job job, Integer collectCount) {
		super();
		this.sourseName = sourseName;
		this.soursePath = soursePath;
		this.sourseImg = sourseImg;
		this.sourseSize = sourseSize;
		this.sourseAuthor = sourseAuthor;
		this.sourseDate = sourseDate;
		this.sourseIntro = sourseIntro;
		this.job = job;
		this.collectCount = collectCount;
	}

	public Sourse(Integer sourseId, String sourseName, String soursePath, String sourseImg, Long sourseSize,
			String sourseAuthor, Date sourseDate, String sourseIntro, Job job, Integer collectCount) {
		super();
		this.sourseId = sourseId;
		this.sourseName = sourseName;
		this.soursePath = soursePath;
		this.sourseImg = sourseImg;
		this.sourseSize = sourseSize;
		this.sourseAuthor = sourseAuthor;
		this.sourseDate = sourseDate;
		this.sourseIntro = sourseIntro;
		this.job = job;
		this.collectCount = collectCount;
	}

	public Sourse(String sourseName, String soursePath, Long sourseSize, String sourseAuthor, Date sourseDate,
			String sourseIntro, Job job, Integer collectCount) {
		super();
		this.sourseName = sourseName;
		this.soursePath = soursePath;
		this.sourseSize = sourseSize;
		this.sourseAuthor = sourseAuthor;
		this.sourseDate = sourseDate;
		this.sourseIntro = sourseIntro;
		this.job = job;
		this.collectCount = collectCount;
	}

	public Sourse(Integer sourseId, String sourseName, String soursePath, Long sourseSize, String sourseAuthor,
			Date sourseDate, String sourseIntro, Job job, Integer collectCount) {
		super();
		this.sourseId = sourseId;
		this.sourseName = sourseName;
		this.soursePath = soursePath;
		this.sourseSize = sourseSize;
		this.sourseAuthor = sourseAuthor;
		this.sourseDate = sourseDate;
		this.sourseIntro = sourseIntro;
		this.job = job;
		this.collectCount = collectCount;
	}

	public Sourse(Integer sourseId, String sourseName, String sourseIntro, Job job) {
		super();
		this.sourseId = sourseId;
		this.sourseName = sourseName;
		this.sourseIntro = sourseIntro;
		this.job = job;
	}

	public Sourse(Integer sourseId, String sourseImg, String sourseName, String sourseIntro, Job job) {
		super();
		this.sourseId = sourseId;
		this.sourseImg = sourseImg;
		this.sourseName = sourseName;
		this.sourseIntro = sourseIntro;
		this.job = job;
	}

	public Integer getSourseId() {
        return sourseId;
    }

    public void setSourseId(Integer sourseId) {
        this.sourseId = sourseId;
    }

    public String getSourseName() {
        return sourseName;
    }

    public void setSourseName(String sourseName) {
        this.sourseName = sourseName == null ? null : sourseName.trim();
    }

    public String getSoursePath() {
        return soursePath;
    }

    public void setSoursePath(String soursePath) {
        this.soursePath = soursePath == null ? null : soursePath.trim();
    }
    
    public String getSourseImg() {
        return sourseImg;
    }

    public void setSourseImg(String sourseImg) {
        this.sourseImg = sourseImg == null ? null : sourseImg.trim();
    }

    public Long getSourseSize() {
        return sourseSize;
    }

    public void setSourseSize(Long sourseSize) {
        this.sourseSize = sourseSize;
    }

    public String getSourseAuthor() {
        return sourseAuthor;
    }

    public void setSourseAuthor(String sourseAuthor) {
        this.sourseAuthor = sourseAuthor == null ? null : sourseAuthor.trim();
    }

    public Date getSourseDate() {
        return sourseDate;
    }

    public void setSourseDate(Date sourseDate) {
        this.sourseDate = sourseDate;
    }

    public String getSourseIntro() {
        return sourseIntro;
    }

    public void setSourseIntro(String sourseIntro) {
        this.sourseIntro = sourseIntro == null ? null : sourseIntro.trim();
    }
    
    public Job getJob() {
        return job;
    }

    public void setJob(Job job) {
        this.job = job;
    }
    
    public Integer getCollectCount() {
    	return collectCount;
    }
    
    public void setCollectCount(Integer collectCount) {
		this.collectCount = collectCount;
	}

	@Override
	public String toString() {
		return "Sourse [sourseId=" + sourseId + ", sourseName=" + sourseName + ", soursePath=" + soursePath
				+ ", sourseImg=" + sourseImg + ", sourseSize=" + sourseSize + ", sourseAuthor=" + sourseAuthor
				+ ", sourseDate=" + sourseDate + ", sourseIntro=" + sourseIntro + ", job=" + job + ", collectCount="
				+ collectCount + "]";
	}

   
}